package com.liuugoqing.creator.singleton.demo7;


import org.junit.Test;

/**
 * @Author : liugq
 * @Date : 2022/6/27 13:45
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public class TestL {

    @Test
    public void test() throws Exception{
        for (int i = 0; i < 1000; i++) {
            new Thread(()->{
                Singleton instance = Singleton.SINGLETON;
                System.out.println(instance);
            }).start();
        }
    }


}
